home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / KEMO_1 / KEMO.H < prev    next >
Text File  |  1992-02-09  |  3KB  |  91 lines

  1. #define KeMoAllDevs        0x0001        /* flags for KeMoSelect */
  2. #define KeMoKey            0x0004
  3. #define KeMoMouse         0x0008
  4. #define KeMoTablet        0x0010
  5. #define KeMoDev8        0x0100
  6. #define KeMoDev9        0x0200
  7. #define KeMoDevA        0x0400
  8. #define KeMoDevB        0x0800
  9. #define KeMoDevC        0x1000
  10. #define KeMoDevD        0x2000
  11. #define KeMoDevE        0x4000
  12. #define KeMoDevF        0x8000
  13.  
  14. #define KeMoDown        0x00        /* flags and transitions for KeMoWait */
  15. #define KeMoUp            0x01
  16. #define KeMoUpDown        0x02
  17. #define KeMoTimedOut    0x04
  18.  
  19. #define KeMoNoTimeOut     -1L            /* no timeout for KeMoWait */
  20.  
  21. #define KeMoQuiet        0x0001        /* flags for KeMoInit */
  22. #define KeMoNoAlert        0x0002
  23. #define KeMoAltKeys        0x0004
  24. #define KeMoNoKeys        0x0008
  25. #define KeMoNoTimer        0x0010
  26. #define KeMoNoSync        0x0020
  27. #define KeMoNoTCheck    0x0040
  28. #define KeMoNoCorrection    0x0080    /* flag for KeMoTimerStop */
  29. #define KeMoNoMBarInit    0x0100
  30.  
  31. #define KeMoErrorVeryOldSystem         -501    /* errors */
  32. #define KeMoErrorOldSystem             -502
  33. #define KeMoErrorNotADB             -503
  34. #define KeMoErrorNotInitialized        -504
  35. #define KeMoErrorBadArgs            -505
  36. #define KeMoErrorUnsuccessful        -506
  37. #define KeMoErrorNoSuchDevice        -507
  38. #define KeMoErrorTimerRunning        -508
  39. #define KeMoErrorTimerNotRunning    -509
  40. #define KeMoErrorTimerNotInit        -510
  41. #define KeMoErrorTimerOff            -511
  42. #define KeMoErrorImproperTest        -512
  43. #define KeMoErrorNoHeapAlloc        -513
  44. #define KeMoErrorNoSync                -514
  45. #define KeMoErrorGestalt            -515
  46. #define KeMoErrorNoCorrection        -516
  47. #define KeMoErrorUnknownDevType        -517
  48. #define KeMoErrorOneDevOnly            -518
  49. #define KeMoErrorMBarHidden            -519
  50. #define KeMoErrorMBarShows            -520
  51.  
  52. #define KeMoErrorMisc                -599
  53.  
  54.     /* definitions for the more arbitrary ASCII codes returned by KeMoCode2Asc */
  55.                         
  56. enum { K0 = 0, K1, K2, K3, K4, K5, K6, K7, K8, K9,
  57.         F1 = 11, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15,
  58.         KSLASH = 'A', TAB, COMMAND, DELETE, ESC, /* NO F */
  59.         POWER = 'G', HELP, /* NO I OR J */
  60.         KENTER = 'K', CAPS, KMINUS, NUMCLEAR, OPTIONL, KPERIOD, KEQUAL,
  61.         RETURN, SHIFTL, CTLL, PGUP, DOWN, PGDOWN, DEL, HOME, END,
  62.         LEFT = '<', RIGHT = '>', UP = '^',
  63.         SHIFTR = '@', CTLR = '#', OPTIONR = '$'
  64.     };
  65.  
  66.             /* structure whose address is to be sent to KeMoWait */
  67. typedef struct {
  68.     char key, key2;
  69.     char updown, updown2;
  70.     } KeMoParms;
  71.     
  72.             /* function prototypes */
  73. pascal long KeMoInit(short flags);
  74. pascal long KeMoSelect(short flags);
  75. pascal long KeMoReset(void);
  76. pascal long KeMoAccuracy(void);
  77. pascal long KeMoWait(short flags, long timeout, KeMoParms *parms);
  78. pascal long KeMoDelay(long timeout);
  79. pascal long KeMoTimerTest(void);
  80. pascal long KeMoQuitApps(void);
  81.  
  82. pascal long KeMoSync(short when);
  83.  
  84. pascal long KeMoTimerStart(void);
  85. pascal long KeMoTimerStop(short flags);
  86.  
  87. pascal char KeMoCode2Asc(short code);
  88.  
  89. pascal long KeMoHideMBar(void);
  90. pascal long KeMoShowMBar(void);
  91.